package com.project.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.project.bean.InfoBean;
import com.project.mapper.IInfoMapper;
import com.project.service.IInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class IInfoServiceImpl implements IInfoService {
    @Autowired
    IInfoMapper mapper;
    @Override
    public void add(InfoBean info) {
        mapper.insert(info);
    }

    @Override
    public List<InfoBean> findAll() {
        return mapper.selectList(null);
    }

    @Override
    public void update(String orderNum, String state) {
       mapper.update(orderNum,state);
    }


}
